Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

205
Vistas
Accessing count reactions from a channel fetched, [navigate in map elements]

I'm trying to develop a bot to help my community. Let's say at a certain point of time I need to examine all messages sent in a channel, and "choose the best one". Let's say I will examine each message and give kind of "notation", then I want to return the name of the author and the notation I gave.

[Edit 1] Thanks to the community, I did advance in my quest ! I am now able to fetch the different messages!! And I geta map/Collection from the channel. I am now also able to get the content or author as it is some quite simple "properties" of the "object".

Where I am blocked is when I need to get the reactions, from what I see there is a ReactionManager, So I'm doing tryings&errors but without able to find my way in the structure... (see the partial structure I can watch attached)

To make it short, let's take a simplified case: is there any one who would get the right coding to :

  • get the property "count" on the let say reactions1 of a certain message where I have the ID from the structure? I suppose I need maybe two or three cascaded arrow functions ? I can't find a way to do them properly.

Any tips, help, idea would be so great ! enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda